package com.taxipark.domain;

public class TaxiDriver extends Human {
	private int id;
	private boolean activity = true;
	private boolean working = false;
	private TaxiManager manager;

	public int getManagerId() {
		return manager.getId();
	}

	public TaxiManager getTaxiManager() {
		return manager;
	}

	public void setManagerId(TaxiManager manager) {
		this.manager = manager;
	}

	public TaxiDriver(String name, String contact) {
		super(name, contact);
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public boolean getActivity() {
		return activity;
	}

	public void setActivity(boolean activity) {
		this.activity = activity;
	}

	public boolean isWorking() {
		return working;
	}

	public void canWork(boolean status) {
		this.working = status;
	}

	@Override
	public String toString() {
		return "TaxiDriver [name=" + getName() + ", contact=" + getContact() + "]";
	}

	public void setManager(TaxiManager manager) {
		this.manager = manager;
	}

}
